#!/bin/sh

sed -i "s/getuid/getpid/g" usr/bin/xchat

mkdir -p ./usr/local/bin

(
echo "echo 'exec xchat' > /usr/local/bin/defaultchat"
echo "chmod 755 /usr/local/bin/defaultchat"
) > pinstall.sh

rm -rf usr/lib/xchat/plugins

sed -i 's%Categories=.*%Categories=X-Internet-chat%' \
	usr/share/applications/xchat.desktop
